home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / How to adjust subviews? < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     How to adjust subviews?
  2. Sent:        9/10/96 11:57 AM
  3. Received:    9/10/96 11:57 AM
  4. From:        bobc@bcstec.ca.boeing.com (Bob Carpenter)
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. The Developer's Guide on DR5 in Chapter 4 talks about adjusting
  10. the subview layout, and uses ODFForm as an example. The guide
  11. is out-of-date here, because ODFForm does not have an implementation
  12. of AdjustSubViews. It's not yet clear to me how the adjusting
  13. is currently taking place - maybe it's in FrameShapeChanged?
  14. If so, then I don't see how the scrollers are getting updated.
  15.  
  16. I've built a part using the Hello template. I then decided that
  17. I'd like to have subview capability, so I cloned the View from
  18. ODFForm, and stripped out the unneeded. I also grabbed 
  19. ODFForm's CreateSubViews. It's starting to work now, but I am
  20. not getting the correct rendering of the subview when I drag the
  21. growbox around. It seems like the content is anchored to the
  22. growbox. When I drag the growbox and enlarge the window, the text
  23. content gets pulled out of view. Eventually the text cannot be seen,
  24. once the window has been fully enlarged.
  25.  
  26. Another interesting feature; though I have cloned ODFForm's scrolling
  27. capability, my scrollers never appear - regardless of how small I
  28. drag my window.
  29.  
  30. Please let me know if any of this sounds familiar, and you have a solution.
  31.  
  32. Thanks.
  33.  
  34. -- 
  35.  
  36. --BobC
  37.  
  38.   Bob Carpenter
  39.   Boeing Commercial Airplanes
  40.   bob.carpenter@boeing.com